package com.wukaige.mongo.mapper;

import com.wukaige.mongo.entity.Cart;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface CartMapper extends MongoRepository<Cart, String> {


    List<Cart> findByUid(Integer uid);

    int removeByGid(Integer gid);

    int removeByCid(Integer cid);
}
